package com.service;

import com.dto.BaseDto;
import com.entity.Condition;
import com.entity.Member;
import com.page.PageInfo;

import java.text.ParseException;
import java.util.List;

public interface MemberService {
    public BaseDto getAll()throws Exception;
    public BaseDto getMemberByMno(String mno)throws Exception;
    public BaseDto add(Member member)throws Exception;
    public BaseDto update(Member member)throws Exception;
    public BaseDto getMembersByPage(PageInfo pageInfo, String cacheId);
    public BaseDto getMembersByPage(PageInfo pageInfo);
    public BaseDto memberByMnoWithAll(String mno)throws Exception;
    /**
     * 搜索分页查询
     * @param pageInfo
     * @return
     */
    public BaseDto searchMembersByPage(PageInfo pageInfo, List<Condition> conditions) throws ParseException ;

    /**
     * 会员购买方案
     * @param member
     * @param prno
     * @return
     * @throws Exception
     */
    public BaseDto buyProgram(Member member, String prno) throws Exception;
}
